package Four;

import java.util.Scanner;

public class Main {

		public static void main(String[] args) {
			Scanner scan = new Scanner(System.in);
			int n = scan.nextInt();
			double[] d = new double[n];
			for (int i = 0; i < n; i++) {
				d[i] = scan.nextDouble();
			}
			System.out.println(ArrayUtils.findMinMax(d));
			System.out.println(ArrayUtils.PairResult.class);
			scan.close();
		}


}
